package com.qxzn.app.bean;

import java.util.List;

public class MsgBean {

    public static final int TEXT_SEND = 1;
    public static final int TEXT_RECEIVE = 2;
    public static final int IMG_SEND = 3;
    public static final int IMG_RECEIVE = 4;
    public static final int VOICE_SEND = 5;
    public static final int VOICE_RECEIVE = 6;
    public static final int VIDEO_SEND = 7;
    public static final int VIDEO_RECEIVE = 8;

    /**
     * result : [{"id":19,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/156446682516041453480-b290-11e9-84d4-6d461b952b29hsq1.mp3","timelength":2400,"createtime":1564466825160,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":18,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/1564466180921c1462290-b28e-11e9-84d4-6d461b952b29hsq1.mp3","timelength":2400,"createtime":1564466180921,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":17,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/156446610884696505ce0-b28e-11e9-84d4-6d461b952b29hsq1.mp3","timelength":2400,"createtime":1564466108845,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":16,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/156445657358262dab1f0-b278-11e9-84d4-6d461b952b29hsq1.mp3","timelength":2400,"createtime":1564456573581,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":12,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/1564451632462e1b776e0-b26c-11e9-b26e-43b17c8b3433hsq1.mp3","timelength":2400,"createtime":1564451632461,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":11,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/1564451599583ce1e86f0-b26c-11e9-b26e-43b17c8b3433hsq1.mp3","timelength":2400,"createtime":1564451599578,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":9,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/1564451139055bb9f87f0-b26b-11e9-ae06-8d542724dcc1hsq1.mp3","timelength":2400,"createtime":1564451139051,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":10,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/1564451139055bb9f87f0-b26b-11e9-ae06-8d542724dcc1hsq1.mp3","timelength":2400,"createtime":1564451139051,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":8,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/15644508772991f9abc30-b26b-11e9-a36c-4b593af05506hsq1.mp3","timelength":2400,"createtime":1564450878319,"messagetype":2,"state":0,"recipient":"hsq1"},{"id":7,"username":"hsq1","words":"萨迪克九分裤","message":"img/desk_chat/1564450787763ea3ca030-b26a-11e9-a36c-4b593af05506hsq1.mp3","timelength":2400,"createtime":1564450787894,"messagetype":2,"state":0,"recipient":"hsq1"}]
     * current_page : 1
     * sum : 0
     */

    private int current_page;
    private int sum;
    private List<ResultBean> result;

    public int getCurrent_page() {
        return current_page;
    }

    public void setCurrent_page(int current_page) {
        this.current_page = current_page;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * id : 19
         * username : hsq1
         * words : 萨迪克九分裤
         * message : img/desk_chat/156446682516041453480-b290-11e9-84d4-6d461b952b29hsq1.mp3
         * timelength : 2400
         * createtime : 1564466825160
         * messagetype : 2
         * state : 0
         * recipient : hsq1
         */

        private String id;
        private String username;
        private String words;
        private String message;
        private float timelength;
        private long createtime;
        private int messagetype = 2;
        private int state;
        private String recipient;
        private String device_id;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getWords() {
            return words;
        }

        public void setWords(String words) {
            this.words = words;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public float getTimelength() {
            return timelength;
        }

        public void setTimelength(float timelength) {
            this.timelength = timelength;
        }

        public long getCreatetime() {
            return createtime;
        }

        public void setCreatetime(long createtime) {
            this.createtime = createtime;
        }

        public int getMessagetype() {
            return messagetype;
        }

        public void setMessagetype(int messagetype) {
            this.messagetype = messagetype;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public String getRecipient() {
            return recipient;
        }

        public void setRecipient(String recipient) {
            this.recipient = recipient;
        }

        public String getDevice_id() {
            return device_id;
        }

        public void setDevice_id(String device_id) {
            this.device_id = device_id;
        }
    }
}
